<script lang="ts" setup>
// import { useCounterStore } from '../../store/stores/counter'
import { useCounter2Store } from '../../store/stores/counter2'
// 导入进来的函数，必须调用之后，才能得到仓库对象
// const store = useCounterStore()
const store = useCounter2Store()

console.log(store)
</script>

<template>
  <div class="">
    Home
    <p>
      <button @click="store.add(3)">+3</button>&nbsp;&nbsp;&nbsp;
      <button @click="store.asyncAdd(100)">+100</button>
    </p>
  </div>
</template>

<style scoped></style>
